package stats;

public class Stats {

	private String longestArtist = "";
	private String longestTitle = "";
	
	public void addArtist(String artist) {
		if (artist.length() > longestArtist.length()) {
			longestArtist = artist;
		}
	}
	
	public void addTitle(String title) {
		if (title.length() > longestTitle.length()) {
			longestTitle = title;
		}
	}
	
	public void print() {
		System.out.println("Longest artist record = " + longestArtist.length());
		System.out.println("\t\"" + longestArtist);
		System.out.println();
		System.out.println("Longest title record = " + longestTitle.length());
		System.out.println("\t\"" + longestTitle);
		System.out.println();
	}
}
